/*************************************
Mouse.h
Created By VietRise on 4/6/2014

*************************************/

#ifndef __MOUSE_H__
#define __MOUSE_H__

#include "cocos2d.h"
#include "GameConfig.h"

class ScreenGameplay;

USING_NS_CC;

class Mouse : public CCSprite
{
private:
	static CCAction* _appear;
	static CCAction* _disappear;
	static CCAction* _dizzy;
public:
	CC_SYNTHESIZE(ScreenGameplay*, _game, Game);
	CC_SYNTHESIZE(bool, _canHit, CanHit);
	CC_SYNTHESIZE(int, _atHole, AtHole);
	CC_SYNTHESIZE(float, _timeAppear, TimeAppear);
	CC_SYNTHESIZE(float, _timeDelay, TimeDelay);
	CC_SYNTHESIZE(float, _countTimeDelay, CountTimeDelay);

	~Mouse();
	Mouse(ScreenGameplay* game);
	static Mouse* create(ScreenGameplay* game);
	static void createAction();
	void appear(int atHole);
	void dizzy();
	void animationAppearDone(CCNode* pSender);
	void mouseHideMiss(CCNode* pSender);
	void mouseHideHit(CCNode* pSender);
	float randomFloat(float a, float b);
	void initTimeDelay(float timeDelay1, float timeDelay2);
	void initTimeAppear(float timeAppear1, float timeAppear2);	
};

#endif //__MOUSE_H__


